<template>
  <div class="admin-view">
    <AdminHeader />
    <div class="admin-main">
      <AdminLayout />
      <div class="admin-content">
        <router-view />
      </div>
    </div>
  </div>
</template>

<script>
import AdminHeader from './components/AdminHeader.vue'
import AdminLayout from './components/AdminLayout.vue'

export default {
  name: 'AdminView',
  components: {
    AdminHeader,
    AdminLayout
  }
}
</script>

<style scoped>
.admin-view {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.admin-main {
  display: flex;
  flex: 1;
  margin-top: 60px;
}

.admin-content {
  flex: 1;
  margin-left: 250px;
  padding: 20px;
  background-color: #f5f5f5;
  min-height: calc(100vh - 60px);
}
</style>